<?php global $base_url; ?>
<?php $form = drupal_get_form('uc_product_add_to_cart_form_'.$node->nid, $node); ?>
<div class="product-frame">
	<div class="product-image"><img typeof="foaf:Image" src="<?php print $base_url; ?>/sites/default/files/<?php print $node->uc_product_image[$node->language][0]['filename']; ?>" width="333" height="250" alt=""/></div>
	<div class="product-image-right-box">
		<h2 class="title" id="page-title"><?php print $node->title; ?></h2>
		<hr class="bucketDivider"/>
		<div class="list-price-box"><?php if($node->list_price<>0){ ?> <span class="list-price-label"><?php print t("List Price");?>: </span><span class="list-price"><?php print number_format($node->list_price, 2, '.', '')."</span>";}?></div>
		<div class="sell-price-box"><span class="sell-price-label"><?php print t("Price");?>: </span><span class="cost"><?php print number_format($node->sell_price, 2, '.', ''); ?></span></div>
<?php //print drupal_render(drupal_get_form('uc_product_add_to_cart_form_'.$node->nid, $node)); ?>
<div class="add-to-cart">
<form action="<?php print $form["#action"]; ?>" method="post" id="<?php print $form["#id"];?>" accept-charset="UTF-8">
<div>
<div class="form-item form-type-textfield form-item-qty">
<label for="edit-qty">Quantity</label>
<input type="text" id="edit-qty" name="qty" value="1" size="5" maxlength="6" class="form-text"/>
</div>
<input type="hidden" name="form_build_id" value="<?php print $form["#build_id"]; ?>"/>
<input type="hidden" name="form_token" value="<?php print $form["form_token"]["#default_value"]; ?>"/>
<input type="hidden" name="form_id" value="<?php print $form["form_id"]["#value"]; ?>"/>
<div class="form-actions form-wrapper" id="edit-actions">
<input class="node-add-to-cart form-submit" type="submit" id="<?php print $form["actions"]["#id"]; ?>" name="op" value="Add to cart"/>
</div>
</div>
</form>		
</div>
	</div>
		
	<hr id="product-line" class="bucketDivider"/>
	<h2 class="product-details">Product Details</h2>
	<div class="prod-dimension-box">
		<?php $prod_dimension = $node->length * $node->width * $node->height ?>
		<?php if($prod_dimension<>0){ ?> <span class="dimension-label">Product Dimensions: </span><span class="dimensions"><?php print $node->length." x ".$node->width." x ".$node->height."</span> ".$node->length_units;}?>
	</div>
	<div class="shipping-weight-box">
		<?php if($node->weight<>0){ ?> <span class="weight-label">Shipping weight: </span><span class="weight"><?php print number_format($node->weight, 2, '.', '')."</span>".$node->weight_units;}?>
	</div>
	<hr class="bucketDivider"/>
	<h2 class="product-description">Product Description</h2>
	<?php print $node->body[$node->language][0]['safe_value']; ?>
</div>
<pre>
<?php print_r($node); ?>
<?php //print_r($form); ?>
<?php //print_r(get_defined_vars()); ?>
<pre>
<?php // this will print the $node array at the bottom of each node take it out when finished ?>
<?php var_dump($node); ?>
